import request from '@/utils/request'

// 查询物料供应商列表
export function listMaterialSupplier(query) {
  return request({
    url: '/ruoyiyinzheng/materialSupplier/list',
    method: 'get',
    params: query
  })
}

// 查询物料供应商详细
export function getMaterialSupplier(supplierId) {
  return request({
    url: '/ruoyiyinzheng/materialSupplier/' + supplierId,
    method: 'get'
  })
}

// 新增物料供应商
export function addMaterialSupplier(data) {
  return request({
    url: '/ruoyiyinzheng/materialSupplier',
    method: 'post',
    data: data
  })
}

// 修改物料供应商
export function updateMaterialSupplier(data) {
  return request({
    url: '/ruoyiyinzheng/materialSupplier',
    method: 'put',
    data: data
  })
}

// 删除物料供应商
export function delMaterialSupplier(supplierId) {
  return request({
    url: '/ruoyiyinzheng/materialSupplier/' + supplierId,
    method: 'delete'
  })
}
